<?php
require realpath(dirname(__FILE__).'/../yii/yii.php');

/**
 * @author AnthonyYang
 */
class Jii extends Yii
{

	/**
	 * Returns the application singleton or null if the singleton has not been created yet.
	 * @return JApplication the application singleton, null if the singleton has not been created yet.
	 */
	public static function app()
	{
		return parent::app();
	}
}


Jii::setPathOfAlias('jii', realpath(dirname(__FILE__)));
Jii::$classMap = CMap::mergeArray(Jii::$classMap, array(
	'JDbConnection' => Jii::getPathOfAlias('jii.db.JDbConnection').'.php',
	'JActiveRecord' => Jii::getPathOfAlias('jii.db.ar.JActiveRecord').'.php',
	'JActiveDataProvider' => Jii::getPathOfAlias('jii.web.JActiveDataProvider').'.php',
	'JController' => Jii::getPathOfAlias('jii.web.JController').'.php',
	'JExtController' => Jii::getPathOfAlias('jii.web.JExtController').'.php',
	'JHttpRequest' => Jii::getPathOfAlias('jii.web.JHttpRequest').'.php',
	'JWebModule' => Jii::getPathOfAlias('jii.web.JWebModule').'.php',
	'JCrudController' => Jii::getPathOfAlias('jii.web.controllers.JCrudController').'.php',
));